package top.healthylife.gateway.platform.td.dto.monitor.addmonitor.req;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import top.healthylife.gateway.dto.annotation.ApiField;
import top.healthylife.gateway.dto.processor.GroupOneMustBeFilledInProcessor;
import top.healthylife.gateway.dto.request.req.ApiReqDto;

import java.time.LocalDate;


/**
 * @author GaoZexi
 * @datetime 2020/3/20 13:20
 */
@Data
@Accessors(chain = true)
@ApiModel("直接添加监控V5")
public class TdReqAddMonitorDto extends ApiReqDto {


    @ApiModelProperty(value ="姓名",required = true,example = "皮晴晴")
    private String name;

    @ApiField(value = "身份证号",group = GroupOneMustBeFilledInProcessor.class)
    @ApiModelProperty(value = "身份证号",example = "370404199006301915")
    private  String idNumber;

    @ApiField(value = "手机号",group = GroupOneMustBeFilledInProcessor.class)
    @ApiModelProperty(value = "手机号",example = "13333333333")
    private String mobile;
    /**
     * 监控开始时间：最早可设置为添加监控的第二天，且会在这一天进行第一次监控
     */
    @ApiField("监控开始时间")
    @ApiModelProperty(value = "监控开始时间",example ="" ,notes = "时间戳类型，单位为毫秒",required = true,hidden = true)
    private Long beginScanTime;

    /**
     * 监控结束时间 必须晚于监控开始时间，且会在这一天进行最后一次监控 扫描周期：规定了扫描的频率，单位是天，周期是根据配置填写 7 天，15 天，30 天，如果已系统配置 15 天，以系统配置为准。周期不可修改。
     */
    @ApiField("监控结束时间")
    @ApiModelProperty(value = "监控结束时间",example ="" ,notes = "时间戳类型，单位为毫秒",required = true,hidden = true)
    private Long endScanTime;

    /**
     * 用于转换时间格式,接口需要时间戳,2021-01-01这种格式对于用户体验好
     */
    @ApiModelProperty(value = "监控开始时间",example ="2021-09-01" ,notes = "2021-01-01",required = true)
    private LocalDate startTime;

    /**
     * 用于转换时间格式,接口需要时间戳,2021-01-01这种格式对于用户体验好
     */
    @ApiModelProperty(value = "监控开始时间",example ="2021-09-30" ,notes = "2021-01-01",required = true)
    private LocalDate endTime;
    /**
     * 操作员
     */
    @ApiField("操作员")
    @ApiModelProperty(value="操作员")
    private String operator;
}
